package com.chouren.goandroid.animate.effect;

import android.view.View;

import com.nineoldandroids.animation.ObjectAnimator;

public class SlideTopEffect extends BaseEffect{

	@Override
	protected void setAnimators(View view) {
		getAnimatorSet().playTogether(
                ObjectAnimator.ofFloat(view, "translationY", -300, 0).setDuration(duration),
                ObjectAnimator.ofFloat(view, "alpha", 0, 1).setDuration(duration*3/2)

        );
	}
}
